public class Main1792 {
    public static void main(String[] args) {
        int b=100;
        int y=10;
        int e=20;
        for (int i=1;i<=(b-e)/y;i++){
            for (int j=(b-y)/e;j>=1;j--){
                if (y*i+e*j==b){
                    System.out.println(i+" "+j);
                }
            }
        }
    }
}
